to

@ApiStatus.Experimental
fun to(consumer: Consumer<R>): ResultArg.Processor<V, R>

Converts this ResultArg into a Processor of the same type that calls the provided consumer.

Return

Processor wrapping this arg with the supplied consumer

Author

fzzyhmstrs

Since

0.5.3

Parameters

consumer

Consumer<R> called when this arg is successfully applied to an input. The result of the arg processing is passed into the consumer.